package com.scs.application.modules.fsd.service;


import com.scs.application.core.service.IBaseService;
import com.scs.application.modules.fsd.dto.SaveRoleDTO;
import com.scs.application.modules.fsd.entity.FsdRole;

import java.util.List;
import java.util.Map;

public interface FsdRoleService extends IBaseService<FsdRole> {
    Boolean removeRole(List<String> roleIds);

    /**
     * 获取特定用户所拥有的角色
     * @param userId
     * @return
     */
    List<FsdRole> listUserRole(String userId);

    String saveRole(SaveRoleDTO roleDTO);

    Map<String, Object> getRoleList(String keyword, Integer currentPage, Integer pageSize);

    Boolean editRole(SaveRoleDTO roleDTO);

    List<FsdRole> listRoleByUserId(String userId);

}
